import AddUser from "../components/AddUser.vue";
import Home from "../components/Home.vue";
import SetUser from "../components/SetUser.vue";
import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/add",
    component: AddUser,
    meta: { content: "添加用户页面" },
  },
  {
    path: "/home",
    component: Home,
    meta: { content: "首页页面" },
  },
  {
    path: "/set",
    component: SetUser,
    meta: { content: "管理用户页面" },
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
